home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Best of Shareware
/
Best of PC Windows Shareware 1.0 - Wayzata Technology (7111) (1993).iso
/
mac
/
DOS
/
PROGRAMG
/
FORTHCMP
/
STRINGS1.4TH
< prev
next >
Wrap
Text File
|
1992-03-30
|
1KB
|
42 lines
\ STRING SUPPORT LIBRARY PART 1
\ Contents Copyright (C) 1986 by Thomas Almy
\ Permission is granted to registered users of ForthCMP to sell or distribute
\ computer programs incorporating the compiled contents of this file.
\ This file must be loaded BEFORE the application program.
\ Then load STRINGS2.4TH before FORTHLIB.
\ When separate code and data segments are used, beware that
\ string literals are in the code segment. Use STR>DSEG
\ to move to string buffer ( in DSEG ).
.( Loading STRINGS ) CR
10 DECIMAL
1024 CONSTANT StringSize \ alter if desired.
DSEG
CREATE strbufr StringSize ALLOT
\ you might also want to put strbufr at some arbitrary high constant
\ location so that the size of the COM/EXE file is not increased:
\ MaxAddress StringSize - 1000 - CONSTANT strbufr
strbufr EQU STRBUF
strbufr EQU strend
1 0 IN/OUT NEED +STRBUF
1 1 IN/OUT NEED STR>DSEG
2 0 IN/OUT NEED STRCPY
2 1 IN/OUT NEED STRPCK
1 1 IN/OUT NEED ASCIIZ
1 1 IN/OUT NEED -ASCIIZ
2 2 IN/OUT NEED -PATH
1 1 IN/OUT NEED -EXT
2 1 IN/OUT NEED +EXT
0 1 IN/OUT NEED argc
2 1 IN/OUT NEED -ASCIIZL
1 1 IN/OUT NEED argv
1 1 IN/OUT NEED getenv
16 = #IF HEX #THEN